<!doctype html>
<html lang="en">
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <title>修改密码</title>
    {% load static %}
    <link rel="stylesheet" href="{% static 'css/register1.css' %}">
</head>
<body>
    <div class="container">
        <h1>修改</h1>
        <form action="/polls/rename/" method="post">
{#            post方法要防止网站攻击要加{% csrf_token %}，action后面也要加斜杠/#}
            {% csrf_token %}
            <div class="form-group">
                <label>用户名：</label>
                <input type="text" name="user" placeholder="请输入用户名" value="{{ data.std_name }}">
{#            只要定位到是第几条数据就可以显示出来,readonly,显示只读不可改#}
            </div>
            <div class="form-group">
                <label>密 码：</label>
                <input type="password" name="pwd" placeholder="请输入密码" value="{{ data.std_pwd }}">
            </div>
            <input type="submit" value="提 交" id="sub">
        </form>
    </div>
</body>
</html>